# -*- coding: utf-8 -*-
from selenium.webdriver.common.by import By

# 登陆的元素定位
Toggle_login=[By.XPATH,"//*/span[text()='密码登录']"]
# 用户名
username_loc=[By.XPATH,"//input[@id='login-type_phone']"]
# 用密码
password_loc=[By.XPATH,"//input[@id='login-type_password']"]
# 登陆
loginbtn_loc=[By.XPATH, "//button[@id='login-btn']"]

# 断言退出登录
login_assert= '//*/a[text()="退出登录"]'
# 断言 登录失败提示语
login_assert_text= '//*[@id="ant-message"]/span/div/div/div[2]/span'